PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Hypnotic / Polar Rolling / HDFX with Flexi - AdamFX n Martin - Bubble Gum in our Mindz Ft Aramandio F.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=2 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=2 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=1 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.012 |
| 27 | fWaveSmoothing=0.900 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.750 |
| 30 | fModWaveAlphaEnd=0.950 |
| 31 | fWarpAnimSpeed=1.459 |
| 32 | fWarpScale=2.007 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99990 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=0.99990 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.500 |
| 45 | wave_g=0.400 |
| 46 | wave_b=0.300 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.000 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=1.000 |
| 53 | ob_a=0.300 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=5.000 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=0.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=0.01000 |
| 83 | wavecode_0_smoothing=1.00000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=0.900 |
| 87 | wavecode_0_a=0.700 |
| 88 | wave_0_per_point1=// Adjust the coefficients of "wave" to create new ones |
| 89 | wave_0_per_point2= |
| 90 | wave_0_per_point3=scale=9; |
| 91 | wave_0_per_point4=curves=6; |
| 92 | wave_0_per_point5=speed=1.4; |
| 93 | wave_0_per_point6= |
| 94 | wave_0_per_point7=wave=sample*curves; |
| 95 | wave_0_per_point8=nscale=15*1/scale; |
| 96 | wave_0_per_point9= |
| 97 | wave_0_per_point10=xp= .5*sin(speed*time)*cos( 3 *wave); |
| 98 | wave_0_per_point11=yp= .5*sin( 2.6 *wave)*sin( 1.2 *wave); |
| 99 | wave_0_per_point12=zp= .5*sin( .8 *wave)*cos( 1.5 *wave); |
| 100 | wave_0_per_point13= |
| 101 | wave_0_per_point14=zp= zp+nscale; |
| 102 | wave_0_per_point15=x= xp/zp + 0.5; |
| 103 | wave_0_per_point16=y= yp/zp + 0.5; |
| 104 | wavecode_1_enabled=0 |
| 105 | wavecode_1_samples=512 |
| 106 | wavecode_1_sep=0 |
| 107 | wavecode_1_bSpectrum=0 |
| 108 | wavecode_1_bUseDots=0 |
| 109 | wavecode_1_bDrawThick=1 |
| 110 | wavecode_1_bAdditive=0 |
| 111 | wavecode_1_scaling=1.00000 |
| 112 | wavecode_1_smoothing=0.50000 |
| 113 | wavecode_1_r=0.500 |
| 114 | wavecode_1_g=0.500 |
| 115 | wavecode_1_b=1.000 |
| 116 | wavecode_1_a=1.000 |
| 117 | wavecode_2_enabled=0 |
| 118 | wavecode_2_samples=512 |
| 119 | wavecode_2_sep=0 |
| 120 | wavecode_2_bSpectrum=0 |
| 121 | wavecode_2_bUseDots=1 |
| 122 | wavecode_2_bDrawThick=1 |
| 123 | wavecode_2_bAdditive=0 |
| 124 | wavecode_2_scaling=1.00000 |
| 125 | wavecode_2_smoothing=0.50000 |
| 126 | wavecode_2_r=1.000 |
| 127 | wavecode_2_g=1.000 |
| 128 | wavecode_2_b=1.000 |
| 129 | wavecode_2_a=1.000 |
| 130 | wavecode_3_enabled=0 |
| 131 | wavecode_3_samples=512 |
| 132 | wavecode_3_sep=0 |
| 133 | wavecode_3_bSpectrum=0 |
| 134 | wavecode_3_bUseDots=0 |
| 135 | wavecode_3_bDrawThick=0 |
| 136 | wavecode_3_bAdditive=0 |
| 137 | wavecode_3_scaling=1.00000 |
| 138 | wavecode_3_smoothing=0.50000 |
| 139 | wavecode_3_r=1.000 |
| 140 | wavecode_3_g=1.000 |
| 141 | wavecode_3_b=1.000 |
| 142 | wavecode_3_a=1.000 |
| 143 | shapecode_0_enabled=0 |
| 144 | shapecode_0_sides=32 |
| 145 | shapecode_0_additive=1 |
| 146 | shapecode_0_thickOutline=0 |
| 147 | shapecode_0_textured=0 |
| 148 | shapecode_0_num_inst=1 |
| 149 | shapecode_0_x=0.500 |
| 150 | shapecode_0_y=0.500 |
| 151 | shapecode_0_rad=0.19477 |
| 152 | shapecode_0_ang=0.00000 |
| 153 | shapecode_0_tex_ang=0.00000 |
| 154 | shapecode_0_tex_zoom=1.00000 |
| 155 | shapecode_0_r=0.000 |
| 156 | shapecode_0_g=0.000 |
| 157 | shapecode_0_b=1.000 |
| 158 | shapecode_0_a=0.000 |
| 159 | shapecode_0_r2=0.630 |
| 160 | shapecode_0_g2=0.700 |
| 161 | shapecode_0_b2=1.000 |
| 162 | shapecode_0_a2=0.070 |
| 163 | shapecode_0_border_r=1.000 |
| 164 | shapecode_0_border_g=1.000 |
| 165 | shapecode_0_border_b=1.000 |
| 166 | shapecode_0_border_a=0.000 |
| 167 | shape_0_init1=flip=1 |
| 168 | shapecode_1_enabled=0 |
| 169 | shapecode_1_sides=6 |
| 170 | shapecode_1_additive=0 |
| 171 | shapecode_1_thickOutline=0 |
| 172 | shapecode_1_textured=0 |
| 173 | shapecode_1_num_inst=1 |
| 174 | shapecode_1_x=0.500 |
| 175 | shapecode_1_y=0.500 |
| 176 | shapecode_1_rad=0.04378 |
| 177 | shapecode_1_ang=0.00000 |
| 178 | shapecode_1_tex_ang=0.00000 |
| 179 | shapecode_1_tex_zoom=1.00000 |
| 180 | shapecode_1_r=0.300 |
| 181 | shapecode_1_g=0.600 |
| 182 | shapecode_1_b=1.000 |
| 183 | shapecode_1_a=1.000 |
| 184 | shapecode_1_r2=0.000 |
| 185 | shapecode_1_g2=0.000 |
| 186 | shapecode_1_b2=1.000 |
| 187 | shapecode_1_a2=0.000 |
| 188 | shapecode_1_border_r=1.000 |
| 189 | shapecode_1_border_g=1.000 |
| 190 | shapecode_1_border_b=1.000 |
| 191 | shapecode_1_border_a=0.000 |
| 192 | shapecode_2_enabled=0 |
| 193 | shapecode_2_sides=36 |
| 194 | shapecode_2_additive=0 |
| 195 | shapecode_2_thickOutline=0 |
| 196 | shapecode_2_textured=0 |
| 197 | shapecode_2_num_inst=1 |
| 198 | shapecode_2_x=0.500 |
| 199 | shapecode_2_y=0.500 |
| 200 | shapecode_2_rad=0.28428 |
| 201 | shapecode_2_ang=0.00000 |
| 202 | shapecode_2_tex_ang=0.00000 |
| 203 | shapecode_2_tex_zoom=1.00000 |
| 204 | shapecode_2_r=0.000 |
| 205 | shapecode_2_g=0.000 |
| 206 | shapecode_2_b=0.000 |
| 207 | shapecode_2_a=0.000 |
| 208 | shapecode_2_r2=0.230 |
| 209 | shapecode_2_g2=0.540 |
| 210 | shapecode_2_b2=1.000 |
| 211 | shapecode_2_a2=0.050 |
| 212 | shapecode_2_border_r=1.000 |
| 213 | shapecode_2_border_g=0.800 |
| 214 | shapecode_2_border_b=0.400 |
| 215 | shapecode_2_border_a=0.450 |
| 216 | shapecode_3_enabled=0 |
| 217 | shapecode_3_sides=6 |
| 218 | shapecode_3_additive=1 |
| 219 | shapecode_3_thickOutline=0 |
| 220 | shapecode_3_textured=0 |
| 221 | shapecode_3_num_inst=1 |
| 222 | shapecode_3_x=0.500 |
| 223 | shapecode_3_y=0.500 |
| 224 | shapecode_3_rad=0.15804 |
| 225 | shapecode_3_ang=0.00000 |
| 226 | shapecode_3_tex_ang=0.00000 |
| 227 | shapecode_3_tex_zoom=1.00000 |
| 228 | shapecode_3_r=0.300 |
| 229 | shapecode_3_g=0.600 |
| 230 | shapecode_3_b=1.000 |
| 231 | shapecode_3_a=1.000 |
| 232 | shapecode_3_r2=0.400 |
| 233 | shapecode_3_g2=0.500 |
| 234 | shapecode_3_b2=1.000 |
| 235 | shapecode_3_a2=0.000 |
| 236 | shapecode_3_border_r=1.000 |
| 237 | shapecode_3_border_g=1.000 |
| 238 | shapecode_3_border_b=1.000 |
| 239 | shapecode_3_border_a=0.000 |
| 240 | per_frame_init_1=prox = 1; |
| 241 | per_frame_1=dec_med = pow (0.8, 30/fps); |
| 242 | per_frame_2=dec_slow = pow (0.8, 30/fps); |
| 243 | per_frame_3=//dec_xlow = pow (0.999, 30/fps); |
| 244 | per_frame_4=beat = max (max (bass, mid), treb); |
| 245 | per_frame_5=avg = avg*dec_slow + beat*(1-dec_slow); |
| 246 | per_frame_6=is_beat = above(beat, avg+peak) * above (time, t0+.2); |
| 247 | per_frame_7=t0 = is_beat*time + (1-is_beat)*t0; |
| 248 | per_frame_8=peak = is_beat * beat + (1-is_beat)*peak*dec_med; |
| 249 | per_frame_9=index = (index + is_beat) %16; |
| 250 | per_frame_10=index2 = (index2 + is_beat*bnot(index))%4; |
| 251 | per_frame_11= |
| 252 | per_frame_12=q22 = peak; |
| 253 | per_frame_13=q22slow = q22slow*dec_slow + q22*(1-dec_slow); |
| 254 | per_frame_14=q23 = q22slow; |
| 255 | per_frame_15=q24 = is_beat; |
| 256 | per_frame_16=q26 = bass_att + mid_att + treb_att; |
| 257 | per_frame_17=vol = vol*dec_med + (1-dec_med)*q26; |
| 258 | per_frame_18=q27 = index + 1; |
| 259 | per_frame_19=q28 = index2 ; |
| 260 | per_frame_20= |
| 261 | per_frame_21=k1 = is_beat*equal(index%2,0); |
| 262 | per_frame_22=p1 = k1*(p1+1) + (1-k1)*p1; |
| 263 | per_frame_23=p2 = dec_med * p2+ (1-dec_med)*p1; |
| 264 | per_frame_24=//rott = p2 * 3.1416/2; |
| 265 | per_frame_25=rott = rott + q22*16*(1-dec_med)/fps*below(q27,6); |
| 266 | per_frame_26=//*****tunnel tilting |
| 267 | per_frame_27=q1 = cos(rott); |
| 268 | per_frame_28=q2 = sin(rott); |
| 269 | per_frame_29=q3 = -q2; |
| 270 | per_frame_30=q4 = q1; |
| 271 | per_frame_31= |
| 272 | per_frame_32=//****tunnel viewpoint x,y |
| 273 | per_frame_33=vtrig = is_beat * bnot(index%2); |
| 274 | per_frame_34=vx = vx * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 275 | per_frame_35=vy = vy * bnot(vtrig) + vtrig * (int(rand(100))/100-.5); |
| 276 | per_frame_36=vx = vx* below(index%15,15); //### |
| 277 | per_frame_37=vy = vy* below(index%15,15); |
| 278 | per_frame_38=q5 = vx*5; |
| 279 | per_frame_39=q6 = vy*5; |
| 280 | per_frame_40= |
| 281 | per_frame_41=//***tunnel width |
| 282 | per_frame_42=q21 = (1+sin(time/12))/8+.01; |
| 283 | per_frame_43= |
| 284 | per_frame_44= |
| 285 | per_frame_45=//*********************** |
| 286 | per_frame_46=trig1= q24*bnot(index%12); |
| 287 | per_frame_47=trig2= q24*bnot((index+4)%12); |
| 288 | per_frame_48=trig3= q24*bnot((index+8)%12); |
| 289 | per_frame_49=trel = trel + vol/fps; |
| 290 | per_frame_50=z0 = 1; |
| 291 | per_frame_51=speed = vol/2; |
| 292 | per_frame_52=hx = sin(trel); |
| 293 | per_frame_53=hy = cos(trel); |
| 294 | per_frame_54= |
| 295 | per_frame_55=p1z = bnot(trig1)* (p1z + (5+p1z)*speed/fps)+trig1*z0; |
| 296 | per_frame_56=p1z = max(p1z,.1); |
| 297 | per_frame_57=q9 = hx/(p1z); |
| 298 | per_frame_58=q10 = hy/(p1z); |
| 299 | per_frame_59=q11 = p1z; |
| 300 | per_frame_60=q12 = .1+.02*q26*bnot((index+2)%3)*p1z*exp(-p1z/100); |
| 301 | per_frame_61= |
| 302 | per_frame_62=p2z = bnot(trig2)* (p2z + (5+p2z)*speed/fps)+trig2*z0; |
| 303 | per_frame_63=p2z = max(p2z,.1); |
| 304 | per_frame_64=q13 = 2*hx/(p2z); |
| 305 | per_frame_65=q14 = -.5*hy/(p2z); |
| 306 | per_frame_66=q15 = p2z; |
| 307 | per_frame_67=q16 = .1+.02*q26*bnot((index+2)%3)*p2z*exp(-p2z/100); |
| 308 | per_frame_68= |
| 309 | per_frame_69= |
| 310 | per_frame_70=p3z = bnot(trig3)* (p3z + (5+p3z)*speed/fps)+trig3*z0; |
| 311 | per_frame_71=p3z = max(p3z,.1); |
| 312 | per_frame_72=q17 = -1.4*hx/(p3z); |
| 313 | per_frame_73=q18 = 2*hy/(p3z); |
| 314 | per_frame_74=q19 = p3z; |
| 315 | per_frame_75=q20 = .1+.02*q26*bnot((index+2)%3)*p3z*exp(-p3z/100); |
| 316 | per_pixel_1=zoom = 1.2 + .2 *sin(time/3); |
| 317 | warp_1=`shader_body |
| 318 | warp_2=`{ |
| 319 | warp_3=` // sample previous frame |
| 320 | warp_4=` ret = tex2D( sampler_fc_main, uv ).xyz; |
| 321 | warp_5=` float3 ret2 = tex2D( sampler_fc_main, uv ).xyz; |
| 322 | warp_6=` // darken (decay) over time |
| 323 | warp_7=` ret += ret - GetBlur2(uv); |
| 324 | warp_8=` ret = lerp(ret2,ret,.07); |
| 325 | warp_9=` ret = (ret - .005)*0.995; //or try: ret -= 0.004; |
| 326 | warp_10=`} |
| 327 | comp_1=`float2 d, uv_light1; |
| 328 | comp_2=`float3 dx, dy, c1, c2, c3, c4, light1_dy; |
| 329 | comp_3=`float2 numerator, denominator, fraction; |
| 330 | comp_4=`float2 c,bipolar; |
| 331 | comp_5=` |
| 332 | comp_6=`shader_body |
| 333 | comp_7=`{ |
| 334 | comp_8=` |
| 335 | comp_9=`// bipolar fractal code |
| 336 | comp_10=` |
| 337 | comp_11=`uv = 0.5 + (uv-0.5)*4; // try apply some overall zoom in or out, works good in play with number of iterations |
| 338 | comp_12=`float cutoff = 0.96; |
| 339 | comp_13=`int n = 1; // number of radial mirrors |
| 340 | comp_14=`float s = 0.333; // logarithmic zoom factor |
| 341 | comp_15=`int depth = 1; //number of fractal iterations |
| 342 | comp_16=` |
| 343 | comp_17=`for(int i = 0; i<depth;i++){ |
| 344 | comp_18=` c = (uv-0.5)*2*aspect.wz; |
| 345 | comp_19=` numerator = (c + float2(q21,q22))*64; |
| 346 | comp_20=` denominator = c + float2(q23,q24); |
| 347 | comp_21=` fraction = float2( numerator.x*denominator.x + numerator.y*denominator.y, |
| 348 | comp_22=` numerator.y*denominator.x - numerator.x*denominator.y)/ |
| 349 | comp_23=` (denominator.x*denominator.x + denominator.y*denominator.y); |
| 350 | comp_24=` c = fraction-0.5; // kind of a Moebius transformation |
| 351 | comp_25=` bipolar = float2(n*atan2(c.x,c.y)*M_INV_PI_2*2+q26,s*aspect.w*log(length(c))+q27); |
| 352 | comp_26=` uv = 0.5 + (0.5 - abs( frac( bipolar * 0.5 ) * 2.0 - 1.0 ))*cutoff; // mirror |
| 353 | comp_27=`} |
| 354 | comp_28=` |
| 355 | comp_29=` |
| 356 | comp_30=` float2 d = texsize.zw*4; |
| 357 | comp_31=` float3 dx = ( 2*GetBlur1(uv+float2(1,0)*d)-2*GetBlur1(uv-float2(1,0)*d) ); |
| 358 | comp_32=` float3 dy = ( 2*GetBlur1(uv+float2(0,1)*d)-2*GetBlur1(uv-float2(0,1)*d) ); |
| 359 | comp_33=` float2 uv_y = uv+float2(dx.y,dy.y)*0.25; |
| 360 | comp_34=` |
| 361 | comp_35=`ret = GetPixel(uv+float2(dx.y,dy.y)*0.015).y*0.6; |
| 362 | comp_36=`ret = lerp(float3(1,2,4),float3(-1.5,-1.5,-3),(1-ret.y)*1 - 0.5 + length(0-uv_y)); |
| 363 | comp_37=`ret = lerp(ret,float3(1,0.5,0),length(uv)); |
| 364 | comp_38=`} |